package com.sg.processor.timer.pbff;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author yechangpeng
 * @version 1.0.0
 * TODO
 * @createTime 2022年04月07日 09:58:00
 */
@Slf4j
@Component
@EnableScheduling
@ConditionalOnProperty(prefix = "image.transfer.task", name = "enabled", havingValue = "true")
public class Timmer {


    /**
     * 每天凌晨一点做清理工作
     */
    @Scheduled(cron = "${image.transfer.task.cron}")
    public void transfer() {

    }
}
